const componentBehavior = require('../../../js/common/ComponentBehavior')

Component({
  properties: {
    data: {
      value: null,
      type: Object
    },
    style:{
      value: false,
      type: Boolean
    },
    text:{
      value: false,
      type: Boolean
    },
    componentStyle: {
      type: String,
      value: 'v1'
    },
  },
  data: {
    focus: false
  },
  behaviors: [componentBehavior],
  methods: {
    valueInput(e) {
      let dataId = this.data.data.Id
      let value = e.detail.value
      this.triggerEvent("inputCallBack", {
        dataId: dataId,
        value: value
      });
    }
  }
})
